import plotly.offline as of
import pandas as pd
from plotly.graph_objs import Bar

of.offline.init_notebook_mode(connected=True)
df = pd.read_csv("https://raw.githubusercontent.com/plotly/datasets/master/school_earnings.csv")

data = [Bar(x=df.School,
            y=df.Gap)]

of.plot(data)